TypeScript(二)----关于null、Undefined、never 类型
1 null 和undefined null是一个只有一个值的特殊类型。表示一个空对象引用。用 typeof 检测 null 返回是object。 typeof 一个没有值的变量会返回 unde ...
1 null 和undefined null是一个只有一个值的特殊类型。表示一个空对象引用。用 typeof 检测 null 返回是object。 typeof 一个没有值的变量会返回 unde ...